<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/images/favicon.ico">

    <title>Signin Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" type="text/css" href="/plugin/bootstrap/css/bootstrap.min.css" />

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link rel="stylesheet" type="text/css" href="/stylesheets/ie10-viewport-bug-workaround.css"> 

	<link rel="stylesheet" type="text/css" href="/plugin/sweetalert/dist/sweetalert.css">
	
	
  </head>

  </head>

  <body>

    <div class="container">


    </div> <!-- /container -->
	<script src="/plugin/sweetalert/dist/sweetalert.min.js"></script>
<script>
var tip = '<%= tip %>';
tip = tip.replace(/&#39;|&#34;/g,'"');
tip = JSON.parse(tip);
var defaults = {   
	title: '操作完成',   
	text: 5, 
	type: "info",//'error', 'warning', 'info', 'success', 'input', 'prompt'
	timer: 5 ,   
	showConfirmButton: false
	}

for ( var attr in defaults ) {
	if ( tip[attr] ===null ) {
		tip[attr] = defaults[attr];
	} 	
}

tip.text =  tip.timer + " 秒后自动跳转到 " + tip.text;
tip.timer *= 1000;
console.log(tip);
swal( tip , function(){
	location.href = tip.url;
} );	
</script>
  </body>
</html>
